<?php
class Payment extends CWidget
{
	public $_offer = "NL";
	public $_price = null;
	public $_receiver = null;
	public $_product = null;
	public $_return_url = null;
	public $_comments = null;
	public function init(){
		$this->_return_url = Yii::app()->createUrl('/shoppingCart/completed');
		$this->_comments = Yii::t("shop","Your transaction have completed, we will check and ship for you soon!");
		parent::init();
	}
	public function run()
	{
		$this->render('default', array(
			'price'=>$this->_price,
			'receiver'=>$this->_receiver,
			'product'=>$this->_product,
			'return_url'=>$this->_return_url,
			'comments'=>$this->_comments
		));
	}
}